package com.ssy.lingxi.contract.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 请款单流转记录
 * @author 伍将
 * @date 2021/3/3
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "con_apply_amount_order_record",
        indexes = {@Index(name = "con_apply_amount_order_record_apply_id_idx", columnList = "applyId"),
                @Index(name = "con_apply_amount_order_record_member_idx", columnList = "memberId,roleId")})
public class ApplyAmountOrderRecordDO implements Serializable {
    private static final long serialVersionUID = -1235850146594598742L;

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "apply_amount_order_record_seq")
    @SequenceGenerator(sequenceName = "con_apply_amount_order_record_seq", name = "apply_amount_order_record_seq", allocationSize = 1)
    private Long id;

    /**
     * 请款单id
     */
    @Column(columnDefinition = "int8")
    private Long applyId;

    /**
     * 用户id
     */
    @Column(columnDefinition = "int8")
    private Long userId;

    /**
     * 会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 操作者
     */
    @Column(columnDefinition = "varchar(50)")
    private String operator;

    /**
     * 部门
     */
    @Column(columnDefinition = "varchar(50)")
    private String department;

    /**
     * 职位
     */
    @Column(columnDefinition = "varchar(50)")
    private String jobTitle;

    /**
     * 状态:ApplyAmountOrderStatusEnum
     */
    @Column(columnDefinition = "int")
    private Integer status;

    /**
     * 状态名称
     */
    @Column(columnDefinition = "varchar(50)")
    private String statusName;

    /**
     * 操作
     */
    @Column(columnDefinition = "varchar(50)")
    private String operate;

    /**
     * 操作时间
     */
    @Column(columnDefinition = "int8")
    private Long operateTime;

    /**
     * 审核意见
     */
    @Column(columnDefinition = "varchar(120)")
    private String opinion;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public Long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }
}
